package com.explore.demo.service;

import com.explore.demo.common.ServerResponse;
import com.explore.demo.pojo.Comment;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author gaolainan
 * @since 2021-04-14
 */
public interface CommentService extends IService<Comment> {
    /**
     * 创建一个评论
     * @param comment
     * @param request
     * @return
     */
    public ServerResponse addComment(Comment comment, HttpServletRequest request);

    /**
     * 通过招聘信息的id 删除相关的的评论
     * @param recruitId
     * @return
     */
    public ServerResponse deleteCategoryByRecruitId(String recruitId);

    /**
     * 查询全部的评论
     * @return
     */
    public ServerResponse queryAll();

    /**
     * 通过招聘信息的id 查询评论的相关信息
     * @param recruitId
     * @return
     */
    public ServerResponse queryCommentByRecruitId(String recruitId);

    /**
     * 更新评论信息
     * @param comment
     * @return
     */
    public ServerResponse updateComment(Comment comment);
}
